# noinspection PyUnresolvedReferences
from Program_1 import * #Demographic information conversion script, this script is very important, because it prepares the demographic data used in the subsequent scripts. Run this script first.

SEP=','
OUTPUT_FN = "C:/Users/16150/Desktop/东亚/2021年/full_results_2021.pkl"
OUTPUT_CSV = "C:/Users/16150/Desktop/东亚/2021年/full_results_2021.csv"
ID_COL = "id"


ANES_FN = 'C:/Users/16150/Desktop/东亚/2021年/data.csv'

fields_of_interest = {
    'province': {
        "template": "我来自XXX.",  #This is a direct access province.
        "valmap": {}
    },
    'gender': {
        "template": "我是XXX.",
        "valmap": {1: '男性', 2: '女性'}
    },
    'date of birth': {
        "template": "我出生于XXX.",
        "valmap": {}
    },
    'nation': {
        "template": "我是XXX.",
        "valmap": {
            1: "汉族",
            2: "蒙族",
            3: "满族",
            4: "回族",
            5: "藏族",
            6: "壮族",
            7: "维吾尔族",
            8: "非汉、蒙、满、回、藏、壮、维族的中国少数民族"
        }
    },
    'Religious belief': {
        "template": "我的宗教信仰：XXX.",
        "valmap": {1: "不信仰宗教",
            11: "佛教",
            12: "道教",
            13: "民间信仰（拜妈祖、关公等）",
            14: "回教/伊斯兰教",
            15: "天主教",
            16: "基督教",
            17: "东正教",
            18: "其他基督教",
            19: "犹太教",
            20: "印度教",
            21: "未知"
        }
    },
    'Frequency of participation in religious activities': {
        "template": "我XXX宗教活动.",
        "valmap": {1: "从来没有参加过",
            2: "一年不到1次参加",
            3: "一年大概1到2次参加",
            4: "一年几次参加",
            5: "大概一月1次参加",
            6: "一月2到3次参加",
            7: "差不多每周都有参加",
            8: "每周都有参加",
            9: "一周几次参加"
        }
    },
    'degree': {
        "template": "我的最高学历是:XXX.",
        "valmap": {1: "没有受过任何教育",
            2: "私塾、扫盲班",
            3: "小学",
            4: "初中",
            5: "职业高中",
            6: "普通高中",
            7: "中专",
            8: "技校",
            9: "大学专科（成人高等教育）",
            10: "大学专科（正规高等教育）",
            11: "大学本科（成人高等教育）",
            12: "大学本科（正规高等教育）",
            13: "研究生及以上",
            14: "未知"
        }
    },
    'Total revenue in 2020': {
        "template": "我的2020年全年总收入：XXX.",
        "valmap": {}
    },
    'Have you submitted an application for joining the Communist Party of China': {
        "template": "我XXX.",
        "valmap": {1: '未递交过中国共产党的申请书',
                   2: '递交过中国共产党的申请书',
                   98: "不知道",
                   99: "拒绝回答"
        }
    },
    'Political status': {
        "template": "我是XXX.",
        "valmap": {1: "群众",
                   2: "共青团员",
                   3: "民主党派",
                   4: "共产党员",
                   98: "不知道",
                   99: "拒绝回答"
        }
    }
}
